package com.hsjk.szwj.module.system.convert.service;

import java.util.*;

import com.hsjk.szwj.framework.common.pojo.PageResult;

import com.hsjk.szwj.module.system.api.service.dto.ServiceDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.hsjk.szwj.module.system.controller.admin.service.vo.*;
import com.hsjk.szwj.module.system.dal.dataobject.service.ServiceDO;

/**
 * 服务信息 Convert
 *
 * @author ec50n9
 */
@Mapper
public interface ServiceConvert {

    ServiceConvert INSTANCE = Mappers.getMapper(ServiceConvert.class);

    ServiceDO convert(ServiceCreateReqVO bean);

    ServiceDO convert(ServiceUpdateReqVO bean);

    ServiceRespVO convert(ServiceDO bean);

    List<ServiceRespVO> convertList(List<ServiceDO> list);

    PageResult<ServiceRespVO> convertPage(PageResult<ServiceDO> page);

    List<ServiceExcelVO> convertList02(List<ServiceDO> list);

    ServiceDTO convertServiceDTO(ServiceDO serviceDO);

}
